#pragma once
#include "Pattern\Subject.h"

class CFileMetabolism:
	public Subject
{
public:
	static CFileMetabolism& GetInstance();
	~CFileMetabolism();
	bool Start();
	bool DelAll();
	void DeleteFloatingFile();
private:
	CRITICAL_SECTION mCSFileDel;
private:
	CFileMetabolism();
	bool DelFile(CString DelPath);
	ULONGLONG GetDiskFreeSpaceAsB(CString DiskName);
	ULONGLONG DelAlarmFile();
	ULONGLONG DelNormalFile();
	bool DelFolder(CString sPath);
};

